<template>
	<sl-page title="消息设置" :safeBottom="false">
		<view class="">
			<view class="flex-one-line">
				<view class="flex flex-column">
					<view class="">开通订阅消息</view>
					<view class="">向你发送小程序订阅消息</view>
				</view>
				<view class="flex flex-column"><u-switch size="40" activeColor="#fe560a" v-model="subscribe" @change="changeSubscribe()"></u-switch></view>
			</view>
			<view class="flex-one-line">
				<view class="flex flex-column ">
					<view class="">订阅消息说明</view>
					<view class="">当订阅次数小于0时，无法接收到对应的消息</view>
					<view class="">当订阅次数小于5时，以红色字体提醒</view>
				</view>
			</view>
			<view class="flex-one-line">
				<view class="flex flex-column ">
					<view class="">收藏商品降价提醒</view>
					<view class="">共订阅5次</view>
				</view>
				<view class="flex flex-column">订阅+1</view>
			</view>
		</view>
	</sl-page>
</template>

<script>
export default {
	data() {
		return {
			subscribe: ''
			// newProducts: ''
		};
	},
	/**
	 * 生命周期函数--监听页面加载
	 */
	onLoad(options) {},
	//
	methods: {
		changeSubscribe(e) {
			console.log('changeSubscribe', e);
		}
		// changeNewProducts(e) {
		// 	console.log('newProducts', e);
		// }
	}
};
</script>

<style lang="scss" scoped>
.message {
}
</style>
